# for i in range(1, 10):
#     for j in range(1, 10):
#         if i > j:
#             print(j, "*", i, "=", i*j, "\t", end="")
#         if i == j:
#             print(j, "*", i, "=", i*j)
#         # if i < j:
# #         #     print("1", end="")
#
# for i in range(1, 10):
#     for j in range(1, 10):
#         if i <= j:
#             print(j, "*", i, "=", i*j, "\t", end="")
#         if j == 9:
#             print("")
for i in range(1,10):
    for k in range(1,i):
        print(end="       ")
    for j in range(i,10):
        print("%d*%d=%2d" % (i,j,i*j),end=" ")
    print("")